package com.zhang.hadoop.rpc.client;

import com.zhang.hadoop.rpc.client.IGpHello;
import com.zhang.hadoop.rpc.client.RpcClientProxy;

/**
 * @author zhang yufei
 * @date 2022/1/6 5:07 下午
 **/
public class TestClient {

    public static void main(String[] args) {
        RpcClientProxy rpcClientProxy = new RpcClientProxy();

        IGpHello hello = rpcClientProxy.clientProxy
                (IGpHello.class, "localhost", 8080);
        System.out.println(hello.sayHello("wuzz"));
    }
}
